package org.walkerljl.practice.mock.service.impl;

import org.walkerljl.practice.mock.dao.UserDao;
import org.walkerljl.practice.mock.domain.User;
import org.walkerljl.practice.mock.service.UserService;

/**
 * @author: lijunlin
 */
public class UserServiceImpl implements UserService {

    private UserDao userDao;

    @Override
    public boolean register(User user) {
        User u = userDao.selectByUserId(user.getUserId());
        System.out.println("user:" + u.toString());

        System.out.println("user:" + user.toString());
        System.out.println("user gender:" + user.getGender());
        System.out.println("user static:" + user.doStatic());


        return true;
    }
}
